package com.example.warehouse.sys.dao.persist.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.warehouse.sys.pojo.entity.SysRole;
import com.example.warehouse.sys.pojo.param.SysRoleStandardParam;
import com.example.warehouse.sys.pojo.vo.SysRoleListItemVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RoleMapper extends BaseMapper<SysRole> {
    List<SysRoleListItemVO> list();

    /**
     * 根据id查询
     * @param id
     * @return
     */
    SysRoleListItemVO roleById(Long id);

    /**
     * 根据name查询
     * @param name
     * @return
     */
    SysRoleListItemVO roleByName(String name);

}
